Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fmt: Refactor the arg fetching code #4331

Merged
merged 1 commit into from
Jan 30, 2020

Conversation

LemonBoy
Copy link
Contributor

  • Error out if the requested index is out-of-bound
  • Tidy-up all the arg-related variables in a struct

* Error out if the requested index is out-of-bound
* Tidy-up all the arg-related variables in a struct
comptime var specifier_start = 0;
comptime var specifier_end = 0;
comptime var options = FormatOptions{};
comptime var arg_state: struct {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh wow, that's a really cool pattern

@andrewrk andrewrk merged commit d27678f into ziglang:master Jan 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants